﻿
#region 程序集引用区
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using SubSonic.DataProviders;
using SubSonic.Extensions;
using System.Linq.Expressions;
using SubSonic.Schema;
using System.Collections;
using SubSonic;
using SubSonic.Repository;
using System.ComponentModel;
using System.Data.Common;
using SubSonic.Query;
using System.Xml;
using System.Xml.Serialization;
using System.Reflection;
#endregion

namespace WebeTerm.Model{
    
    /// <summary>
    /// 文 件 名: EmployeeInfo.cs
    /// CLR版本 : v2.0.50727
    /// 作   者 : lijun.hu
    /// 版    权: Copyright @2011 lijun.hu(FORCEN HU) 
    /// 电子邮箱：lijun.hu@shinsoft.net
    /// 说    明: 员工信息
    /// 生成日期: 2014年12月5日
    /// </summary>
    [Serializable]
    [Description(@"员工信息")]
    public partial class EmployeeInfo:BaseModel, IModel{
        
        #region 构造函数
        /// <summary>
        /// 员工信息
        /// </summary>
        public EmployeeInfo() : base(new EmployeeInfoTable(null)) { 
            
        }               
        #endregion
        
        #region EmployeeInfo属性列表
        System.Guid m_Id;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Guid  Id
        {
            get { return m_Id; }
            set
            {
                //if(m_Id!=value)
                {
                    m_Id=value;
                    UpdateColumn(@"Id");
                }
            }
        }
        
        System.String m_EmployeeNo;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  EmployeeNo
        {
            get { return m_EmployeeNo; }
            set
            {
                //if(m_EmployeeNo!=value)
                {
                    m_EmployeeNo=value;
                    UpdateColumn(@"EmployeeNo");
                }
            }
        }
        
        System.String m_EmployeeName;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  EmployeeName
        {
            get { return m_EmployeeName; }
            set
            {
                //if(m_EmployeeName!=value)
                {
                    m_EmployeeName=value;
                    UpdateColumn(@"EmployeeName");
                }
            }
        }
        
        System.String m_Password;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  Password
        {
            get { return m_Password; }
            set
            {
                //if(m_Password!=value)
                {
                    m_Password=value;
                    UpdateColumn(@"Password");
                }
            }
        }
        
        System.DateTime m_ExpireDate;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.DateTime  ExpireDate
        {
            get { return m_ExpireDate; }
            set
            {
                //if(m_ExpireDate!=value)
                {
                    m_ExpireDate=value;
                    UpdateColumn(@"ExpireDate");
                }
            }
        }
        
        System.Guid m_CompanyId;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Guid  CompanyId
        {
            get { return m_CompanyId; }
            set
            {
                //if(m_CompanyId!=value)
                {
                    m_CompanyId=value;
                    UpdateColumn(@"CompanyId");
                }
            }
        }
        
        System.String m_EmployeeFlag;
        /// <summary>
        /// 订票用户标识
        ///</summary>
        [XmlAttribute()]
        [Description(@"订票用户标识")]
        public System.String  EmployeeFlag
        {
            get { return m_EmployeeFlag; }
            set
            {
                //if(m_EmployeeFlag!=value)
                {
                    m_EmployeeFlag=value;
                    UpdateColumn(@"EmployeeFlag");
                }
            }
        }
        
        System.String m_Email;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  Email
        {
            get { return m_Email; }
            set
            {
                //if(m_Email!=value)
                {
                    m_Email=value;
                    UpdateColumn(@"Email");
                }
            }
        }
        
        System.String m_Qq;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  QQ
        {
            get { return m_Qq; }
            set
            {
                //if(m_Qq!=value)
                {
                    m_Qq=value;
                    UpdateColumn(@"Qq");
                }
            }
        }
        
        System.String m_WeiXinNo;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  WeiXinNo
        {
            get { return m_WeiXinNo; }
            set
            {
                //if(m_WeiXinNo!=value)
                {
                    m_WeiXinNo=value;
                    UpdateColumn(@"WeiXinNo");
                }
            }
        }
        
        System.Int32 m_ReceiveType;
        /// <summary>
        /// 通知方式（邮件，微信，QQ）
        ///</summary>
        [XmlAttribute()]
        [Description(@"通知方式（邮件，微信，QQ）")]
        public System.Int32  ReceiveType
        {
            get { return m_ReceiveType; }
            set
            {
                //if(m_ReceiveType!=value)
                {
                    m_ReceiveType=value;
                    UpdateColumn(@"ReceiveType");
                }
            }
        }
        
        #endregion
        
        
        #region 关联父级
        private CompanyInfo m_FK_EMPLOYEE_REFERENCE_COMPANYI;
        /// <summary>
        /// FK_EMPLOYEE_REFERENCE_COMPANYI:未定义.
        /// <remarks>
        /// 外键名称：FK_EMPLOYEE_REFERENCE_COMPANYI
        /// 主表名称：CompanyInfo
        /// 外键字段：Id
        /// </remarks>
        /// </summary>
        [Browsable(false)]
        [XmlIgnore()]
        public CompanyInfo FK_EMPLOYEE_REFERENCE_COMPANYI{
            get{
                return m_FK_EMPLOYEE_REFERENCE_COMPANYI;
            }
            set{
                m_FK_EMPLOYEE_REFERENCE_COMPANYI=value;
            }
        }
        #endregion
       
    }
} 



